<?php
	include ("Connect_To_Database.php");
	$Mode = $_POST["Check_emp_id_same"];
	$data_id = $_POST["ID"];
	

	if ($Mode == 'same_id' && $data_id != "") {
	    $strSQL = "SELECT * FROM giswebdatabase WHERE emp_id = '$data_id' ";
	    $objQuery = mysql_query($strSQL);
	    $row = mysql_num_rows($objQuery);

	    if ($row > 0) {
		    echo 1; //fali
		} else {
		    echo 0; //true
		}
	}
	
	else {
		echo 2; //data id = null
	}
?>